﻿using Ue.Qcdz.Domain.Articles;
namespace Ue.Qcdz.Domain
{
    public partial class SiteUrls
    {

        public string NewsList(object key)
        {
            return this.BuildUrl("NewsList", key);
        }
        public string NewsListBigImg(object key)
        {
            return this.BuildUrl("NewsListBigImg", key);
        }
        public string NewsListSmallImg(object key)
        {
            return this.BuildUrl("NewsListSmallImg", key);
        }

        public string NewsShow(object key)
        {            
            if (key != null)
            {
                return this.BuildUrl("NewsShow", (key as Article).Key);
            }
            else
            {
                return "#";
            }
        }

        public string ArticleEdit()
        {
            return this.BuildUrl("ArticleEdit", null);
        }
        public string ArticleManage()
        {
            return this.BuildUrl("ArticleManage", null);
        }
    }
}
